<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class WeChat extends Model
{
    use HasFactory;

    protected $fillable = ['site_id', 'title', 'introduce', 'name', 'qr', 'type', 'token', 'wechat_id', 'appid', 'appsecret', 'welcome', 'default_message'];

    public function site()
    {
        $this->belongsTo(Site::class);
    }
}
